<?php
require_once('pworks/mvc/IResult.iface.php');

class PhpResult implements IResult {
	public function show(IAction &$action, ResultConfig $config) {
//DebugUtil::dump($action, __FILE__, __LINE__);
        global $data, $errors, $warnings, $infos, $FileName;	    
		$data = $action->getData();
//DebugUtil::dump($data, __FILE__, __LINE__);
		$errors = $action->getErrors();
		$warnings = $action->getWarnings();
		$infos = $action->getInfos();
		$FileName = $config->src; 
		require($config->src);
	}
}
